package com.xnew.manager.maintainPlan.service.impl;

import com.github.pagehelper.PageHelper;
import com.xnew.manager.maintainPlan.entity.ElMaintainPlanDetails;
import com.xnew.manager.maintainPlan.mapper.ElMaintainPlanDetailsMapper;
import com.xnew.manager.maintainPlan.service.ElMaintainPlanDetailsService;
import com.xnew.utils.DataInput;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Description: 维保计划详情
 * @Author: Y70
 * @date 2022/10/24
 */
@Service
public class ElMaintainPlanDetailsServiceImpl implements ElMaintainPlanDetailsService {

    @Resource
    private ElMaintainPlanDetailsMapper elMaintainPlanDetailsMapper;

    /**
     * 维保计划详情列表
     * @param input 维保计划主键
     * @return
     */
    @Override
    public List<ElMaintainPlanDetails> queryMaintainDetailsList(DataInput input) {
        PageHelper.startPage(input.getPageNum(), input.getPageSize());
        Map param = input.getParam();
        List<ElMaintainPlanDetails> elMaintainPlanDetails = elMaintainPlanDetailsMapper.queryMaintainDetailsList(param);
        return elMaintainPlanDetails;
    }
}
